From 30788062f7de0b1696e733e908f3f60036e668a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Wilmet?= Date: Sat, 23 Mar 2013 16:44:49 +0100 Subject: [PATCH] GtkLabel: fix underlining of mnemonics The underscore was shown in front of the mnemonic instead of underlining it (e.g., _Save). Thanks to Lars Uebernickel. https://bugzilla.gnome.org/show_bug.cgi?id=674759 --- gtk/gtklabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 20d2c2e1cf..3b85c316cc 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -2570,7 +2570,7 @@ gtk_label_set_markup_internal (GtkLabel *label, /* Extract the text to display */ if (!pango_parse_markup (str_for_display, -1, - 0, + with_uline ? '_' : 0, &attrs, &text, NULL, -- 2.30.2